package com.situ.struts.action;

import com.opensymphony.xwork2.ActionSupport;
import com.situ.struts.entity.User;

public class UserAction2 extends ActionSupport {
    // 对象类型，要加上get、set方法
    private User user;

    public String register() {
        System.out.println("UserAction2.register");
        System.out.println(user);
        return "success";
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
